<%-- 
    Document   : hasil
    Created on : Oct 30, 2014, 9:16:21 PM
    Author     : Fajar
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Hasil</title>
    </head>
    <body>
        <%
    if(request.getParameter("no1") != null) {
                if(request.getParameter("no1").equals("C. Memanggil Constructor")) {
                    out.println("Jawaban Benar :D :D");
                }else {
                    out.println("Jawaban Salah :P :P");
                }
    }
    
    if(request.getParameter("no2") != null) {
                if(request.getParameter("no2").equals("C. n2 = n1;")) {
                    out.println("Jawaban Benar :D :D");
                }else {
                    out.println("Jawaban Salah :P :P");
                }
    }
    
    if(request.getParameter("no3") != null) {
                if(request.getParameter("no3").equals("A. 1,3,5,7,9")) {
                    out.println("Jawaban Benar :D :D");
                }else {
                    out.println("Jawaban Salah :P :P");
                }
    }
    
    if(request.getParameter("no4") != null) {
                if(request.getParameter("no4").equals("D. Tidak ada output di layar")) {
                    out.println("Jawaban Benar :D :D");
                }else {
                    out.println("Jawaban Salah :P :P");
                }
    }
    
     if(request.getParameter("no5") != null) {
                if(request.getParameter("no5").equals("C. kata[3]")) {
                    out.println("Jawaban Benar :D :D");
                }else {
                    out.println("Jawaban Salah :P :P");
                }
    }
%>
    </body>
</html>
